﻿Public Class MapTypes

    Public Shared Function StorageDataType(dotnetdatatype As String) As String

        If dotnetdatatype = "Binary" Then
            Return "blob"
        ElseIf dotnetdatatype = "Boolean" Then
            Return "bool"
        ElseIf dotnetdatatype = "Byte" Then
            Return "byte"
        ElseIf dotnetdatatype = "DateTime" Then
            Return "date"
        ElseIf dotnetdatatype = "DateTimeOffset" Then
            Return "date"
        ElseIf dotnetdatatype = "Decimal" Then
            Return "number"
        ElseIf dotnetdatatype = "Double" Then
            Return "number"
        ElseIf dotnetdatatype = "Float" Then
            Return "number"
        ElseIf dotnetdatatype = "Guid" Then
            Return "uuid"
        ElseIf dotnetdatatype = "Int16" Then
            Return "word"
        ElseIf dotnetdatatype = "Int32" Then
            Return "number"
        ElseIf dotnetdatatype = "Int64" Then
            Return "long64"
        ElseIf dotnetdatatype = "SByte" Then
            Return "byte"
        ElseIf dotnetdatatype = "String" Then
            Return "string"
        ElseIf dotnetdatatype = "Time" Then
            Return "duration"
        End If

    End Function



End Class
